const cloud = require('@alipay/faas-server-sdk');

exports.main = async (event, context) => {
  // 初始化
  cloud.init();
  const db = cloud.database();
  const res = await db.collection("garbageGroup").where({
    groupName: event.groupName
  }).get();
  return res[0];
};